package com.icehand.redis.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface CacheLock {
    String prefix() default "lock";

    int expire() default 5;

    TimeUnit timeUnit() default TimeUnit.SECONDS;

    String delimiter() default ":";
}